<?php
Class DatabaseConn {
	
private $link;
private static $instance;

	public function __construct() {
		$this->link = mysql_connect('mysql412.ixwebhosting.com:3306','cacipri_user','D3eobvm13');
		if (!$this->link) {
	    	die('Could not connect: ' . mysql_error());
		} else {
			mysql_select_db("cacipri_art");
		}
		
	}
	
	public static function getInstance() {
		
		if (!self::$instance) {
			self::$instance = new self();
		}
		return self::$instance;
	}

	
}
?>